package com.hellpro.lolbox.utils;

import android.content.Context;
import android.view.Gravity;
import android.widget.Toast;

/**
 * 类描述:
 * 创建人:阿犇
 * 创建时间:2016/10/23
 * 备注:
 */

public class ToastShowCenter {

    public static void centerToast(Context context,String showText){
        Toast toast = Toast.makeText(context, showText, Toast.LENGTH_SHORT);
        toast.setGravity(Gravity.CENTER,0,0);
        toast.show();
    }
}
